package com.lau.guava;

import com.google.common.collect.Lists;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by liutf on 2016/7/15.
 */
public class MyGuava {

    public static void list(){
        List<String> list = new ArrayList<>();
        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");

        ArrayList<String> gList = Lists.newArrayList("a", "b", "c", "d");

        ArrayList<String> arrayList = Lists.newArrayList();
        arrayList.add("aaa");
        arrayList.add("aaa");
        arrayList.add("aaa");
        arrayList.forEach(System.out::println);


    }

    public static void main(String[] args) {
        MyGuava.list();
    }

}
